/**
 * Equal Heights Plugin
 * Equalize the heights of elements. Great for columns or any elements
 * that need to be the same size (floats, etc).
 * 
 * Version 1.0
 * Updated 12/10/2008
 *
 * Copyright (c) 2008 Rob Glazebrook (cssnewbie.com) 
 *
 * Usage: $j(object).equalHeights([minHeight], [maxHeight]);
 * 
 * Example 1: $j(".cols").equalHeights(); Sets all columns to the same height.
 * Example 2: $j(".cols").equalHeights(400); Sets all cols to at least 400px tall.
 * Example 3: $j(".cols").equalHeights(100,300); Cols are at least 100 but no more
 * than 300 pixels tall. Elements with too much content will gain a scrollbar.
 * 
 */
$.fn.equalHeights = function(px) {
    var equalH = 0;
        $(this).each(function(index){
            if ($(this).outerHeight() > equalH) {
                equalH = $(this).outerHeight();
            }
        });
    $(this).outerHeight(equalH);
	return this;
};


$.fn.equalWidth = function(px) {
    var equalW = 0;
        $(this).each(function(index){
            if ($(this).outerWidth() > equalW) {
                equalW = $(this).outerWidth();
            }
        });
    $(this).outerWidth(equalW);
	return this;
};